<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags"  prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>taoshop</title>
<link href="${pageContext.request.contextPath}/css/slider.css" rel="stylesheet" type="text/css"/>
<link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet" type="text/css"/>
<link href="${pageContext.request.contextPath}/css/index.css" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.js">
</script>
<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/js/layer/layer.js">
</script>
<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/js/imagesize.js">
</script>

</head>
<body>
<div class="container header">

	<%@include file="header.jsp" %>	
	<%@include file="search.jsp" %>
	<%@include file="menu.jsp" %>

</div>

<div class="container index">
		
		
		<div class="span24">
			<div id="hotProduct" class="hotProduct clearfix">
					<div class="title">
						<strong>热门商品</strong>
						<!-- <a  target="_blank"></a> -->
					</div>
					<div class="tab">
							
					</div>

						<ul class="tabContent" style="display: block;">
							<s:iterator var="p" value="hList">
									<li style="text-align:center">
										<a style="display:block;"href="${ pageContext.request.contextPath }/product_findByPid.action?pid=<s:property value="#p.pid"/>" target="_self">
											<div style="width:170px;height:170px;">
											<img class="indeximg" src="${pageContext.request.contextPath}/<s:property value="#p.image"/>"  style="display: block;" />
											</div>
											<strong><s:property value="#p.categorySecond.csname"/></strong>
										</a>
									</li>
							</s:iterator>		
						</ul>
			</div>
		</div>
		<div class="span24">
			<div id="newProduct" class="newProduct clearfix">
					<div class="title">
						<strong>最新商品</strong>
						<a  target="_blank"></a>
					</div>
					<div class="tab">
							
					</div>
						
						 <ul class="tabContent" style="display: block;">
						 	<s:iterator var="p" value="nList">
									<li style="text-align:center;">
										<a style="display:block;" href="${ pageContext.request.contextPath }/product_findByPid.action?pid=<s:property value="#p.pid"/>" target="_parent">
											<div style="width:170px;height:170px;">
											<img src="${pageContext.request.contextPath}/<s:property value="#p.image"/>"  style="display: block;" />
											</div>								
											<strong><s:property value="#p.categorySecond.csname"/></strong>
										
										</a>
									</li>
									
							</s:iterator>		
						</ul>
						
			</div>
		</div>
		
	</div>
<div class="container footer">
	<div class="span24">
		<div class="footerAd">
					<img src="${pageContext.request.contextPath}/image/footer.jpg"  alt="我们的优势" title="我们的优势" />
</div>	</div>
	<%@include file="bottom.jsp" %>
</div>
</body>
</html>